var action = require('../service')

module.exports = {
  name: 'api',
  path: '/api',
  modules: [
    // {
    //   name: 'token',
    //   path: '/token',
    //   methods: [
    //     {method: 'post', path: '/login', version: '0.0.1', handler: action.token.login},
    //     {method: 'post', path: `/refresh`, version: '0.0.1', handler: action.token.refresh},
    //     {method: 'post', path: `/logout`, version: '0.0.1', handler: action.token.logout},
    //     {method: 'get', path: `/users`, version: '0.0.1', handler: action.token.getUsers}
    //   ]
    // },
    {
      name: 'report',
      path: '/report',
      methods: [
        {method: 'get', path: '/menu', version: '0.0.1', handler: action.report.getmenu},
        {method: 'post', path: '/menu', version: '0.0.1', handler: action.report.addmenu},
        {method: 'get', path: '/config', version: '0.0.1', handler: action.report.getconfig},
        {method: 'post', path: '/config', version: '0.0.1', handler: action.report.addconfig},
        {method: 'get', path: '/rundata', version: '0.0.1', handler: action.report.getrundata}
      ]
    }
  ]
}
